﻿using StudyCompanion.Core.Repository;
using StudyCompanion.Core.Services;
using StudyCompanion.Entity.System;
using StudyCompanion.IServices;

namespace StudyCompanion.Services;

public class LoginLogService : BaseService<LoginLog>, ILoginLogService
{
    public LoginLogService(BaseRepository<LoginLog> repository) : base(repository)
    {
    }

    /// <summary>
    ///     添加日志
    /// </summary>
    /// <param name="entity"></param>
    /// <returns></returns>
    public async Task<bool> InsertAsync(LoginLog entity)
    {
        return await _repository.InsertAsync(entity);
    }
}